package com.java.multipledatasource.spring.entity;

/**
 * @author hu
 * @version 1.0
 * @date 2020/11/30 0030 下午 1:28
 */
public class Clazz implements Cloneable {

    private String name;

    private Integer num;

    public Clazz() {
    }

    @Override
    public Clazz clone() throws CloneNotSupportedException {
        return (Clazz) super.clone();
    }

    public Clazz(String name, Integer num) {
        this.name = name;
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Clazz{" +
                "name='" + name + '\'' +
                ", num='" + num + '\'' +
                '}';
    }
}
